

// @Bind #view.onReady
!function(self, arg) {
	var dsCondition = view.id("dsCondition");
	dsCondition.insert();
	
}

// @Bind #btnQuery.onClick
!function(self, arg, dsCondition, dsDefectJudge) {
	var condition = dsCondition.getData('#');
	
	
	dsDefectJudge.set("parameter", {
		"billNumber" : condition.get("billNumber"), 
		"drawingId" : condition.get("drawingId"), 
		"batchNum" : condition.get("batchNum"),
		"billState" : condition.get("billState"),
		"isInEffect" : condition.get("isInEffect")
	});
	dsDefectJudge.flush();
}

//@Bind #dpBillState.beforeExecute
!function(self,arg,dsTypesData) {
	dsTypesData.set("parameter", {typeName: "judgestate"});
	dsTypesData.flush();
}